package cn.topevery.garden.entity.po.event;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@ApiModel(value = "EventInfoFile", description = "案件附件")
@DbTable(tableName = "t_event_info_file")
@Data
public class EventInfoFile extends BaseEntity {
    @ApiModelProperty(value = "案件ID")
    @DbTableField(columnName = "c_evt_id", dbType = DbTypeEnum.VARCHAR, isKey = false, canUpdate = true, canInsert = true)
    private String evtId;
    @ApiModelProperty(value = "环节实例ID")
    @DbTableField(columnName = "c_act_inst_id", dbType = DbTypeEnum.VARCHAR, isKey = false, canUpdate = true, canInsert = true)
    private String actInstId;
    @ApiModelProperty(value = "文件ID")
    @NotBlank(message = "文件id不能为空")
    @DbTableField(columnName = "c_file_id", dbType = DbTypeEnum.VARCHAR, isKey = false, canUpdate = true, canInsert = true)
    private String fileId;
    @ApiModelProperty(value = "文件名称")
    @DbTableField(columnName = "c_file_name", dbType = DbTypeEnum.VARCHAR, isKey = false, canUpdate = true, canInsert = true)
    private String fileName;
    @ApiModelProperty(value = "文件类型")
    @DbTableField(columnName = "c_file_type", dbType = DbTypeEnum.VARCHAR, isKey = false, canUpdate = true, canInsert = true)
    private String fileType;
    @ApiModelProperty(value = "文件类型(int)：0、图片，1、视频，2、音频，3、其他")
    @DbTableField(columnName = "c_file_ext", dbType = DbTypeEnum.TINYINT, isKey = false, canUpdate = true, canInsert = true)
    private Integer fileExt = 0;
    @ApiModelProperty(value = "数据类型：1：处理前照片，2：处理后照片")
    @DbTableField(columnName = "c_data_type", dbType = DbTypeEnum.TINYINT, isKey = false, canUpdate = true, canInsert = true)
    private Integer dataType;

}
